package de.mock.services.http;

import java.io.File;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;


public class TEST1 {

	public void X() throws Exception {
		
		
		
		// http://jsoup.org/cookbook/extracting-data/selector-syntax
		File input = new File("e:\\dev\\workspaces\\TiJavaWorkspace\\LessiServer\\GeoLessiImpl\\src\\de\\mock\\services\\http\\TEST.xml");
		Document doc = Jsoup.parse(input, "ISO-8859-1", "http://mobil.vvs.de/mobile/");
		
		
		
		Elements links = doc.select("table#sm-res");
		
		//System.out.println(links.html());
		
		 for (Element src : links) {
			 System.out.println(src.tagName());
			 System.out.println(src.html());
//			 Elements select = src.select("td");
//			 for (Element src1 : select) {
//				 System.out.println(src1.tagName());
//				 
//				 
//			 }
			 
		 }

		

	}

	public static void main(String[] args) {

		try {
			new TEST1().X();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
